package com.smgeek.gkrpc.example;

import com.smgeek.gkrpc.sever.RpcServer;

/**
 * @ClassName Server
 * @Author wuyuyang
 * @Date 2022/1/7 15:01
 * @Description Server
 * @Version 1.0
 */
public class Server {

    public static void main(String[] args) {
        RpcServer server = new RpcServer();
        server.register(CalcService.class,new CalcService());
        try {
            server.start();
        } catch (Exception e) {
            e.printStackTrace();
        }
    }
}
